package com.yu.crm.web;


import com.yu.crm.domain.pojo.Gate;
import com.yu.crm.service.impl.GateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zds
 * @since 2021-03-12
 */
@Api(tags = "检票口管理")
@RestController
@RequestMapping("/gate")
public class GateController {

    @Autowired
    private GateService gateService;

    @ApiOperation(value = "查询所有进站口")
    @GetMapping(value = "/gateList")
    public List<Gate> gateList(){
        return gateService.list();
    }

}

